home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kdm.postrm < prev    next >
Text File  |  2008-10-24  |  1KB  |  46 lines

  1. #! /bin/sh -e
  2.  
  3. case "$1" in
  4.     purge)
  5.         rm -rf /var/log/kdm.log*
  6.         for DIR in /var/lib/kdm; do
  7.             if [ -d "$DIR" ]; then
  8.                 rm -rf "$DIR"
  9.             fi
  10.         done
  11.     ;;
  12.  
  13.     abort-install|abort-upgrade)
  14.         # roll back displacement of default display manager file
  15.         if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
  16.             # FIXME - redo this part uses shell-lib.sh from xfree86
  17.             #observe "rolling back change of default X display manager"
  18.             mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE"
  19.         fi
  20.     ;;
  21.  
  22.     remove|upgrade|failed-upgrade|disappear)
  23.  
  24.     ;;
  25.  
  26.     *)
  27.         echo "postrm called with unknown argument \`$1'" >&2
  28.         exit 1
  29.     ;;
  30. esac
  31.  
  32. # Automatically added by dh_installdebconf
  33. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  34.     . /usr/share/debconf/confmodule
  35.     db_purge
  36. fi
  37. # End automatically added section
  38. # Automatically added by dh_installinit
  39. if [ "$1" = "purge" ] ; then
  40.     update-rc.d kdm remove >/dev/null || exit $?
  41. fi
  42. # End automatically added section
  43.  
  44.  
  45. exit 0
  46.